package com.zp.system.entity.bo;

import com.zp.common.core.entity.BaseEntity;
import com.zp.common.core.validate.AddGroup;
import com.zp.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;

/**
 * 字典类型业务对象
 *
 * @author zhang peng
 * @date 2023-01-01
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class SysBaseDictTypeBo extends BaseEntity {

    /**
     * 字典主键
     */
    @NotBlank(message = "字典主键不能为空", groups = {EditGroup.class})
    private String baseDictId;

    /**
     * 字典名称
     */
    @NotBlank(message = "字典名称不能为空", groups = {AddGroup.class, EditGroup.class})
    private String baseDictName;

    /**
     * 字典类型
     */
    @NotBlank(message = "字典类型不能为空", groups = {AddGroup.class, EditGroup.class})
    private String dictType;

    /**
     * 状态（0正常 1停用）
     */
    @NotBlank(message = "状态（0正常 1停用）不能为空", groups = {AddGroup.class, EditGroup.class})
    private String status;

    /**
     * 备注
     */
    private String remark;


}
